package com.chinasoft04.mall.pojo;

import com.chinasoft04.mall.dto.AuthRoleDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthRolePojo {
    Integer role_id;
    String role_name;
    String ps_ids;
    String ps_ca;
    String role_desc;

    public AuthRolePojo(AuthRoleDto roleDto) {
        this.role_id = roleDto.getId();
        if(this.role_id==null)this.role_id = roleDto.getRoleId();
        this.role_name = roleDto.getRoleName();
        this.role_desc = roleDto.getRoleDesc();
    }
}
